﻿using bbtpClient.WebServices;
using bbtpClient.Entities;

namespace bbtpClient.Controllers
{
    public static class ClientController
    {
        private static readonly ClientControllerClient Instance = new ClientControllerClient("ClientControllerImplPort", Program.Host + "clientController");


        public static Client GetClient(long clientId)
        {
            return Instance.getClient(UserInfo.SessionId, clientId);
        }

        public static void DeleteClient(long clientId)
        {
            Instance.deleteClient(UserInfo.SessionId, clientId);
        }

        public static ClientHead[] GetClientsList()
        {
            return Instance.getClientsList(UserInfo.SessionId);
        }

        public static bool ClientExists(string email)
        {
            return Instance.clientExists(UserInfo.SessionId, email);
        }

        public static Client FindByEmail(string email)
        {
            return Instance.findByEmail(UserInfo.SessionId, email);
        }
    }
}
